package net.lzzy.gitdemo;

import java.io.*;

public class Java_demo5 {
    public static void main(String[] args) throws IOException{
        try (
            ObjectOutputStream output =
                    new ObjectOutputStream(new FileOutputStream("object.dat"));
            ){
            output.writeUTF("John");
            output.writeDouble(85.5);
            output.writeObject(new java.util.Date());
        }
    }
}
